package com.huluobo.a2303mdmdemo.demo

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.View

/**
 *  Created by LC on 2025/9/3.
 */
class MyTouchView(context: Context, attributeSet: AttributeSet) : View(context, attributeSet) {

    override fun dispatchTouchEvent(event: MotionEvent?): Boolean {
        Log.e("TagA", "View 分发::${event?.action}")
        return super.dispatchTouchEvent(event)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        Log.e("TagA", "View 消费::${event?.action}")
        return super.onTouchEvent(event)
    }
}